package com.itheima.day05.zuoye.ZuoYe5;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Goods {

    @Override

    public String toString() {
        return "Goods{" +
                "name='" + name + '\'' +
                ", price=" + count +
                '}';
    }

    public Goods() {
    }

    public Goods(String name, int count) {
        this.name = name;
        this.count = count;
    }

    public static LocalDateTime getStart() {
        return start;
    }

    public static void setStart(LocalDateTime start) {
        Goods.start = start;
    }

    public static LocalDateTime getEnd() {
        return end;
    }

    public static void setEnd(LocalDateTime end) {
        Goods.end = end;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getCount() {
        return count;
    }

    public void setPrice(int count) {
        this.count = count;
    }
    public static DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    public static  LocalDateTime start = LocalDateTime.parse("2025-07-11 00:00:00",formatter);
    public static LocalDateTime end = LocalDateTime.parse("2025-07-30 00:00:00",formatter);


   // public static LocalDateTime end = LocalDateTime.of(2025,7,30,12,0,0);
    private String name;
    private int count;
}
